<?php
	require_once('NumberGenerator.php');
class DigitObserver implements SplObserver {
	public function update(SplSubject $subject) {
		$count = $subject->getState();
		echo("state => " . $count);
		echo("<br/>\n");
	}
} //class end
?>